import {defineConfig} from 'vite';
import vue from '@vitejs/plugin-vue';
import proxyConfig from './proxy.config';
//@ts-ignore
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
    server: {
        cors: true,
        port: 8888,
        //强制预加载依赖
        force: true,
        //强制端口
        strictPort: false,
        proxy: proxyConfig
    },
    build: {},
    plugins: [vue()],
    resolve: {
        alias: {
            //@ts-ignore  设置别名
            '@': path.resolve(__dirname, './src'),
            //@ts-ignore
            '@static': path.resolve(__dirname, './src/static')
        }
    }
});
